package sebastiankerckhof.render.raytrace;

import sebastiankerckhof.structure.Vertex;
import sebastiankerckhof.structure.math.Vector3f;

public class Hit {
	public static final float INFINITY = Float.POSITIVE_INFINITY;
  public static final Hit NO_HIT = new Hit(INFINITY);
  
  public Hit(Vector3f normal, float distance)
  {
          this.normal = normal;
          this.distance = distance;
  }

  public Hit(float distance)
  {
          this(Vector3f.ZERO, distance);
  }
  
  public Hit clone(){
  	return new Hit(normal,distance);
  }
  
	public float distance;
	public Vector3f normal;
}
